package com.biz.primus.ms.member.feign;

import com.biz.primus.model.misc.enums.SMSType;
import com.biz.primus.ms.member.degraded.DegradedMiscFeignClient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author jun.liu
 * @date 2017/9/19
 */
@FeignClient(qualifier = "miscFeignClient", name = "service-misc", fallback = DegradedMiscFeignClient.class)
public interface MiscFeignClient
{

    @PostMapping("soa/misc/validateAndDisableSMSCode")
    Boolean validateAndDisableSMSCode(@RequestParam("mobile") String mobile,
                                      @RequestParam("type") SMSType type,
                                      @RequestParam("smsCode") String smsCode);
}
